package lab02.Test07;

/**
 * Created by lenovo on 2017/10/18.
 */
public class Person {
    String name;
    int age;
    String icd;

    Person(){}
    public Person(String n,int a,String i ){
        this.setName(n);
        this.setAge(a);
        this.setIcd(i);
    }
    public String put(){
        return "姓名："+this.getName()+"\n"+
                "年龄："+this.getAge()+"\n"+
                "身份证号码："+this.getIcd();
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getIcd() {
        return icd;
    }

    public void setIcd(String icd) {
        this.icd = icd;
    }
}
